package com.cnhis.cloudhealth.clinical.clidoctor.medicine.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;
@SuppressWarnings("rawtypes")
@Repository
public class MedicineDao extends BaseDao {
	public Page queryMedicine(Map map,int currPage,int pageSize)throws Exception{
		return this.queryForPage("Medicine.queryMedicine", map, currPage, pageSize);
	}
	public List  patientAllergyMedicine(Map map)throws Exception{
		return this.queryForList("Medicine.patientAllergyMedicine", map);
	}
	public Page medicineAllergy(Map map,int currPage,int pageSize)throws Exception{
		return this.queryForPage("Medicine.medicineAllergy", map, currPage, pageSize);
	}
	public List medicineDefaultDosage(Map map)throws Exception{
		return this.queryForList("Medicine.medicineDefaultDosage", map);
	}
	public List executeTimeCase(Map map)throws Exception{
		return  this.queryForList("Medicine.executeTimeCase", map);
	}
	public String  getParam(Map map)throws Exception{
		return (String) queryForExtObject("Medicine.getParam", map);
	}
	public Page selectParamno(Map map,int currPage,int pageSize)throws Exception{
		return queryForPage("Medicine.selectParamno", map, currPage, pageSize);
	}
	public Page selectParam(Map map,int currPage,int pageSize)throws Exception{
		return queryForPage("Medicine.selectParam", map, currPage, pageSize);
	}
	public List getTmpBCKList(Map map)throws Exception{
		return queryForList("Medicine.tmpBCKList", map);
	}
	public List getDefaultPharmacy0(Map map)throws Exception{
		return queryForList("Medicine.getDefaultPharmacy0", map);
	}
	public List getDefaultPharmacy1(Map map)throws Exception{
		return queryForList("Medicine.getDefaultPharmacy1", map);
	}
	public String getBDN01(Map map)throws Exception{
		return (String) queryForExtObject("Medicine.getBDN01", map);
	}
	public List getDrugCount(Map map)throws Exception{
		return queryForList("Medicine.getDrugCount", map);
	}
	public List disabledDrug(Map map)throws Exception{
		return queryForList("Medicine.disabledDrug", map);
	}
}
